package com.zhangyj.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import com.zhangyj.entitis.Program;

public interface MenuAndTreeDao {
	public List<?> getTreeItemList(int templateId) throws SQLException;

	public Set<Integer> getProgramIdSet(int userid) throws SQLException;
	public List<?> selAllProgram() throws SQLException;
	public Program loadProgramInfo(int programid) throws SQLException;
	public void saveProgramInfo(Program info,boolean isInsert) throws SQLException;
	public void delProgram(int programid) throws SQLException;
	public int getMenuTemplateId(int userid, int entid) throws SQLException;
}
